import { close, connect } from "../../util/mongo"
export default defineEventHandler(async (event) => {
   const {db,client} = await connect()
        const collection = db.collection('usage')
       
        const result = await collection.find().toArray()
        close(client)
        return result
})
